package edu.whu.assignment7.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import edu.whu.assignment7.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface UserMapper extends BaseMapper<User> {

    @Select("select * from user where username = #{username};")
    User selectByUsername(String username);
}
